import { createRouter, createWebHistory,createWebHashHistory} from 'vue-router'
const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/home',
      name: 'home',
      meta: { title: '地块管理' },
      component: () => import('@/views/homeMap.vue')
    },
    {
      path: '/queryPlanLand',
      name: 'queryPlanLand',
      meta: { title: '查看地块' },
      component: () => import('@/views/queryPlanLand.vue')
    },
    {
      path: '/selecLand',
      name: 'selecLand',
      meta: { title: '选择地块' },
      component: () => import('@/views/selecLand.vue')
    },
    {
      path: '/evaluateSelecLand',
      name: 'evaluateSelecLand',
      meta: { title: '选择地块-已估产地块不可选' },
      component: () => import('@/views/evaluateSelecLand.vue')
    },
    {
      path: '/farming',
      name: 'farming',
      meta: { title: '农事记录' },
      component: () => import('@/views/farmingMap.vue')
    },
    {
      path: '/growth',
      name: 'growth',
      meta: { title: '长势记录' },
      component: () => import('@/views/growthMap.vue')
    },
    {
      path: '/eidtLand',
      name: 'eidtLand',
      meta: { title: '编辑地块' },
      component: () => import('@/views/eidtLand.vue')
    }
  ]
})

export default router
